﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="typelist.aspx.cs" Inherits="admin_newstype" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">

        function QR() {

            return confirm("确认吗？");
        }
    
    </script>
    <style type="text/css">
        .table2{border:#ffffff solid;border-width:1 0 0 1;}
        
        .td{border:#ffffff solid;border-width:0 1 1 0}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="400">
    <tr>
    <td width="50">类型ID</td><td width="80">类型</td><td width="50">删除</td><td width="50">修改</td>
    </tr>
    </table>
        <asp:Repeater ID="rptnewstype" runat="server" 
            onitemcommand="rptnewstype_ItemCommand">
        <ItemTemplate>
        <table width="400" class="table2" border="1px" cellpadding ="0"  cellspacing="0">
        <tr>
        <td width="50"><%#Eval("tid") %></td>
        <td width="80"><%#Eval("tname") %></td>
        <td width="50"><asp:LinkButton ID="btndel" runat="server" CommandName="del" CommandArgument='<%#Eval("tid") %>' OnClientClick="return QR()" >删除</asp:LinkButton></td>
        <td width="50"><asp:Button ID="btnedit" runat="server" Text="编辑" /></td>
        </tr>
        </table>
        </ItemTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
